﻿namespace PublicModels.APIObjs;

/// <summary>
/// 轻量级路线规划
/// </summary>
public class Directionlite:APIObjBase
{
    public DirectionliteResult? result { get; set; }
}

public class DirectionliteResult
{
    public Location? origin { get; set; }

    public Location? destination { get; set; }

    public List<Route>? routes { get; set; }
}

public class Route
{
    /// <summary>
    /// 距离耗费（m）
    /// </summary>
    public int distance { get; set; }

    /// <summary>
    /// 时间耗费（s）
    /// </summary>
    public int duration { get; set; }

    /// <summary>
    /// 过路费预估
    /// </summary>
    public int toll { get; set; }

    /// <summary>
    /// 路线步骤
    /// </summary>
    public List<Step>? steps { get; set; }
}

public class Step
{
    public int distance { get; set; }

    public int duration { get; set; }

    public int direction { get; set; }

    public string? instruction { get; set; }

    public Location? start_location { get; set; }

    public Location? end_location { get; set; }

    public string? path { get; set; }
}
